import request from '@/utils/request'
import { timeFormat, dateDiff } from '@/utils/dateUtil'
const api = {}

//MQ遗漏日志查询
api.query = data => {
	let p= request({
    	url: `/log/undoLogMq/query`,
      method: 'get',
      params:data
    })
     p.then(res=>{
      res.data.page.list.forEach(e => {
        e.createTime = timeFormat(e.createTime)
      });
    })
    return p
}

api.redo = id => {
  return request({
      url: `/log/undoLogMq/redo/${id}`,
      method: 'post'
  })
}

api.del = id => {
  return request({
      url: `/log/undoLogMq/del/${id}`,
      method: 'post'
  })
}


export default api